package org.jeecg.modules.demo.soSettlement.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.demo.soSettlement.entity.SoSettlement;
import org.jeecg.modules.demo.soSettlement.entity.SoSettlementVo;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @Description: so_settlement
 * @Author: jeecg-boot
 * @Date:   2021-12-15
 * @Version: V1.0
 */
public interface ISoSettlementService extends IService<SoSettlement> {
    public String getMaxCode();

    SoSettlement getBySosNo(String sosNo);

    SoSettlement getSoSettleBySosNo(String sosNo);

    List<SoSettlement> getBysoNo(String id);

    List<SoSettlementVo> queryXsqsBymonth();

    List<SoSettlementVo> querySrfx(String beginTime,String endTime);

    List<SoSettlement> getByfpNo(String invoiceNo);

    List<SoSettlement> getYjsd(String soNo);

    SoSettlement getBySqoNo(String qoNum);

   public  boolean hcYjsd(JSONObject jsonObject, HttpServletRequest req);

    boolean addSoSettle(JSONObject jsonObject, HttpServletRequest req);
    //入库单合并结算
    boolean addPoSettle(JSONObject jsonObject, HttpServletRequest req);

    boolean addSoInvoice(JSONObject jsonObject, HttpServletRequest req);

	 List<SoSettlement> getWriteOffDetails(String str);

    List<SoSettlement> getHxnoBySosNo(String sosNo);
}
